package com.flyforum.repository;

import junit.framework.Assert;

import org.junit.Test;
import org.unitils.dbunit.annotation.DataSet;
import org.unitils.spring.annotation.SpringBeanByType;

import com.flyforum.domain.User;

@DataSet
public class UserRepositoryTest extends BaseRepositoryTest {

	@SpringBeanByType
	private UserRepository UserRepository;

	@Test
	public void testFindUserByLastName() {
		User user = UserRepository.getByName("doe");
		Assert.assertNull(user);
	}

}
